﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace ClientApplication
{
    public class LoginEventArgs: EventArgs
    {
        // Private field exposed by the Text property
        private string id;
        private string password;
        IPAddress serverIP;

        public LoginEventArgs(string id, string password, IPAddress serverIP)
        {
            this.id = id;
            this.password = password;
            this.serverIP = serverIP;
        }

        // Read only property.
        public string GetId
        {
            get { return id; }
        }

        public string GetPassword
        {
            get { return password; }
        }

        public IPAddress GetServerIP
        {
            get { return serverIP; }
        }
    }
}
